<template>
    <div id="recommend">
        <!-- 推荐列表 -->
        <argainList title='人气推荐'></argainList>
        <wgyOneUpright :recommend='recommend'></wgyOneUpright>
    </div>
</template>

<script>
import {getGoodsList} from '../../utils/api/Home'

import argainList from '@/components/home/argainList/argainListTitle'
import wgyOneUpright from '@/components/wgy-One-Upright/wgy-One-Upright'

export default {
    data() {
        return {
            recommend:[]
        };
    },
    created() {
        // 获取人气推荐的全部商品
         getGoodsList().then(res => {
            this.recommend = res.data
        })
    },
    methods: {

    },
    //组件挂载
    components: {
        wgyOneUpright,
        argainList
    },
    //计算属性
    computed: {},
    //过滤器
    filters: {},
};
</script>

<style lang="scss" scoped>
#recommend{
    background-color: #fff;
}
</style>
